<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Download Demo</title>
</head>
<body ng-app="meanDownload">
<!--style-->
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
<div class="pure-g" ng-controller="downloadController">
    <div class="pure-u-1-4"></div>
    <div class="pure-u-1-4">
        <p>
            <!--{{getFiles}}-->
            <button ng-click="getFiles()" class="pure-button pure-button-primary">Get Files</button>
            <!--<button ng-click="count = count + 1" ng-init="count=0" class="pure-button pure-button-primary">clicked {{count}} time<span ng-show="count > 1">s</span></button>-->
        <div ng-repeat="f in files" ng-show="files">
            <!-- <button class="pure-button pure-button-primary" ng-click="download()"ng-model="filename">{{f}}</button> -->
            <a target="_self" href="{{'http://localhost:3000/download/' + f}}">{{f}}</a>
            <span ng-show="downloaded">downloaded</span>
        </div>
        </p>

    </div>
    <div class="pure-u-1-4">
        <p>
            Try all download buttons.
        </p>
    </div>
    <div class="pure-u-1-4"></div>
</div>
<!--library-->
<script src="bower_components/angular/angular.js"></script>
<!--service-->

<!--controller-->

<!--application-->
<script src="app.js"></script>
</body>
</html>